/* 
 * 路由配置表
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
// 固定路由界面
import Login from '../views/Login/Login.vue'
// import Empty from '../views/Empty/Empty.vue'


// 解决路由重复点击出现错误
const originPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
  return originPush.call(this, location).catch(err => err)
}

Vue.use(VueRouter)

// 固定路由表 -- 无权限都可以访问
export const fixedRouter = [{
  path: '/',
  name: 'Login',
  component: Login,
},

]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes: fixedRouter
})

export default router